#!/usr/bin/env python3

import rospy
from DrEmpower_can.msg import position_done
# import DrEmpower as dr

def callback(data):
    import DrEmpower as dr
    dr.position_done(id_num=data.id_num)
    rospy.loginfo("position_done_node")


def listener():
    rospy.init_node("position_done", anonymous=True)
    rospy.Subscriber("position_done", position_done, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

